import util.DbUtil

DbUtil.prepare()

def sql = DbUtil.sql

sql.query('select firstname, lastname, birthday from t_athlete') { rs ->
	if(rs.next()) {
		print rs.getString(1)
		print ' '
		println rs.getString('lastname')
		println rs.getDate('birthday')
		println '-' * 25
	}
}

sql.close()
